package me.qixiaobo.enums;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

/**
 * 系统环境枚举类
 */
//格式化枚举类
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@Getter
public enum SystemEnvironmentEnum implements BaseEnum<String>{


    /**
     * dev
     */
    DEV("dev", "开发环境"),

    /**
     * sit
     */
    SIT("sit", "测试环境"),

    /**
     * pre
     */
    PRE("pre", "预发布环境"),

    /**
     * prod
     */
    PROD("prod", "生产环境");


    public static final String DEV_ENV = "dev";


    private String code;

    private String desc;

    SystemEnvironmentEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

}
